<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      asymptote-2.62
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.79.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-9.1">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 9.1
      </h4>
      <h3>
        Chapter&nbsp;51.&nbsp;Typesetting
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="texlive.html" title=
          "texlive-20190410-source">Prev</a>
          <p>
            texlive-20190410-source
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="biber.html" title="biber-2.14">Next</a>
          <p>
            biber-2.14
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="typesetting.html" title=
          "Chapter&nbsp;51.&nbsp;Typesetting">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="asymptote" name="asymptote"></a>asymptote-2.62
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to asymptote
        </h2>
        <p>
          <span class="application">Asymptote</span> is a powerful
          descriptive vector graphics language that provides a natural
          coordinate-based framework for technical drawing. Labels and
          equations can be typeset with LaTeX. As well as EPS, PDF and PNG
          output it can produce WebGL 3D HTML rendering and (using
          <span class="application">dvisvgm</span>) SVG output.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "https://downloads.sourceforge.net/asymptote/asymptote-2.62.src.tgz">
                https://downloads.sourceforge.net/asymptote/asymptote-2.62.src.tgz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: 5ed8f48990d889af0040b057ca5c62e8
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 4.5 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 197 MB (with all the
                dependencies which are within BLFS)
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: 2.5 SBU
              </p>
            </li>
          </ul>
        </div>
        <h4>
          Required
        </h4>
        <p class="required">
          <a class="xref" href="gs.html" title=
          "ghostscript-9.50">ghostscript-9.50</a> and <a class="xref" href=
          "texlive.html" title="texlive-20190410-source">texlive-20190410</a>
        </p>
        <h4>
          Recommended
        </h4>
        <p class="recommended">
          <a class="xref" href="../x/freeglut.html" title=
          "Freeglut-3.2.1">Freeglut-3.2.1</a>, <a class="xref" href=
          "../general/gc.html" title="GC-8.0.4">GC-8.0.4</a>, <a class="xref"
          href="../x/glew.html" title="GLEW-2.1.0">GLEW-2.1.0</a>, <a class=
          "xref" href="../general/glm.html" title=
          "GLM-0.9.9.7">GLM-0.9.9.7</a> and <a class="xref" href=
          "../basicnet/libtirpc.html" title=
          "libtirpc-1.2.5">libtirpc-1.2.5</a>
        </p>
        <h4>
          Recommended at runtime
        </h4>
        <p class="recommended">
          <a class="xref" href="dvisvgm.html" title=
          "dvisvgm-2.8.2">dvisvgm-2.8.2</a>
        </p>
        <h4>
          Optional
        </h4>
        <p class="optional">
          <a class="xref" href="../general/fftw.html" title=
          "fftw-3.3.8">fftw-3.3.8</a>, <a class="xref" href=
          "../general/gsl.html" title="Gsl-2.6">Gsl-2.6</a>, <a class="xref"
          href="../general/libsigsegv.html" title=
          "libsigsegv-2.12">libsigsegv-2.12</a>
        </p>
        <h4>
          Optional (at runtime, to use xasy)
        </h4>
        <p class="optional">
          <a class="ulink" href="https://pypi.org/project/PyQt5/">PyQt5</a>
          (not tested), which has a build dependency of <a class="xref" href=
          "../x/qt5.html" title="Qt-5.14.1">Qt-5.14.1</a>
        </p>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/asymptote">http://wiki.linuxfromscratch.org/blfs/wiki/asymptote</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of asymptote
        </h2>
        <p>
          Install <span class="application">asymptote</span> by running the
          following commands:
        </p>
        <pre class="userinput">
<kbd class=
"command">export TEXARCH=$(uname -m | sed -e 's/i.86/i386/' -e 's/$/-linux/') &amp;&amp;

./configure --prefix=/opt/texlive/2019                          \
            --bindir=/opt/texlive/2019/bin/$TEXARCH             \
            --datarootdir=/opt/texlive/2019/texmf-dist          \
            --infodir=/opt/texlive/2019/texmf-dist/doc/info     \
            --libdir=/opt/texlive/2019/texmf-dist               \
            --mandir=/opt/texlive/2019/texmf-dist/doc/man       \
            --enable-gc=system                                  \
            --with-latex=/opt/texlive/2019/texmf-dist/tex/latex \
            --with-context=/opt/texlive/2019/texmf-dist/tex/context/third &amp;&amp;

make</kbd>
</pre>
        <p>
          To test the results, issue: <span class="command"><strong>make
          check</strong></span>.
        </p>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">make install</kbd>
</pre>
      </div>
      <div class="commands" lang="en" xml:lang="en">
        <h2 class="sect2">
          Command Explanations
        </h2>
        <p>
          <em class="parameter"><code>--prefix=, --bindir=, --datarootdir=,
          --infodir=, --mandir= ...</code></em> : these switches ensure that
          the files installed from source will overwrite any corresponding
          files previously installed by <span class=
          "application">install-tl-unx</span> so that the alternative methods
          of installing <span class="application">texlive</span> are
          consistent.
        </p>
        <p>
          <em class=
          "parameter"><code>--libdir=/opt/texlive/2019/texmf-dist;</code></em>:
          This parameter ensures that the <code class=
          "filename">asymptote</code> directory will similarly overwrite any
          files installed by install-tl-unx.
        </p>
        <p>
          <em class="parameter"><code>--enable-gc=system</code></em>: this
          ensures that the system version of <code class=
          "filename">libgc.so</code> will be used instead of the version
          shipped with this package.
        </p>
        <p>
          <em class="parameter"><code>--with-latex= ...
          --with-context=</code></em>: These switches ensure that style files
          and a tex file will be installed into the <span class=
          "application">texlive</span> directories instead of creating a
          <code class="filename">texmf-local</code> directory for them.
        </p>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Programs:</strong>
              <span class="segbody">asy, xasy</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Libraries:</strong>
              <span class="segbody">None</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directory:</strong>
              <span class="segbody">/opt/texlive/2019texmf-dist/asymptote,
              /opt/texlive/2019/doc/asymptote,
              /opt/texlive/2019/info/asymptote</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="asy" name="asy"></a><span class=
                    "term"><span class="command"><strong>asy</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is a vector graphics program.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="xasy" name="xasy"></a><span class=
                    "term"><span class=
                    "command"><strong>xasy</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is a Python3 script providing a Qt5 GUI for asy.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-02-22 14:08:54 -0800
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="texlive.html" title=
          "texlive-20190410-source">Prev</a>
          <p>
            texlive-20190410-source
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="biber.html" title="biber-2.14">Next</a>
          <p>
            biber-2.14
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="typesetting.html" title=
          "Chapter&nbsp;51.&nbsp;Typesetting">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
